using System;
using System.Data.Entity;
using System.Data.Entity.Infrastructure;


namespace Kunlun.Models
{
      public class KunLunEntities:DbContext
         {
             public DbSet<Consumer> Consumers { get; set; }

             public DbSet<Product> Product { get; set; }

             public DbSet<Consumer_library> Consumer_library { get; set; }
             public DbSet<Question> Question { get; set; }
             public DbSet<Orderdetail> Orderdetail { get; set; }
             public DbSet<Templete> Templete { get; set; }
             public DbSet<Paymethod> Paymethod { get; set; }
             public DbSet<System_pic> System_pic { get; set; }
             public DbSet<Valuation> Valuation { get; set; }
             public DbSet<Cats> Cats { get; set; }
             public DbSet<FriendLink> FriendLink { get; set; }
             public DbSet<DeliveType> DeliveType { get; set; }
             public DbSet<Category> Category { get; set; }
             public DbSet<Address> Address { get; set; }
             public DbSet<Product_attributes> Product_attributes { get; set; }
             public DbSet<Help> Help { get; set; }
             public DbSet<Product_type> Product_type { get; set; }
             public DbSet<Helptype> Helptype { get; set; }
             public DbSet<Product_propertys> Product_propertys { get; set; }
             public DbSet<Product_library> Product_library { get; set; }
             public DbSet<Product_pic> Product_pic { get; set; }
             public DbSet<Frame_attribute> Frame_attribute { get; set; }
             public DbSet<Consumer_pic> Consumer_pic { get; set; }
             public DbSet<FrameContact> FrameContact { get; set; }
             public DbSet<Frame_type> Frame_type { get; set; }
             public DbSet<AdManage> AdManage { get; set; }
             public DbSet<Area> Area { get; set; }
             public DbSet<Order> Order { get; set; }
             public DbSet<City> City { get; set; }
             public DbSet<Provice> Provice { get; set; }
             public DbSet<Works> Works { get; set; }
             public DbSet<News> News { get; set; }
             public DbSet<Recommend> Recommend { get; set; }
			 public DbSet<FavourableCode> FavourableCode { get; set; }


             protected override void OnModelCreating(DbModelBuilder modelBuilder)
             {
                 modelBuilder.Conventions.Remove<IncludeMetadataConvention>();
             }
       }
}
